package com.cn.hangyun.common;

public class Page {

    private int page;     //当前第几页
    private int rows;     //每页显示记录数
    private int firstPage;  //第几条记录起始
    
    public int getPage() {
        return page;
    }
    public void setPage(int page) {
        this.page = page;
    }
    public int getRows() {
        return rows;
    }
    public void setRows(int rows) {
        this.rows = rows;
    }
    
    public int getFirstPage() {
        firstPage = (this.page - 1) * this.rows;
        return firstPage;
    } 
}
